package com.ruoyi.recycle.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.recycle.domain.EssayQuestionType;

import java.util.List;

/**
 * 问答分类Mapper接口
 *
 * @author Wubk
 * @date 2022-05-22
 */
public interface EssayQuestionTypeMapper extends BaseMapper<EssayQuestionType> {
    /**
     * 查询问答分类
     *
     * @param id 问答分类主键
     * @return 问答分类
     */
    public EssayQuestionType selectEssayQuestionTypeById(Long id);

    /**
     * 查询问答分类列表
     *
     * @param essayQuestionType 问答分类
     * @return 问答分类集合
     */
    public List<EssayQuestionType> selectEssayQuestionTypeList(EssayQuestionType essayQuestionType);

    /**
     * 新增问答分类
     *
     * @param essayQuestionType 问答分类
     * @return 结果
     */
    public int insertEssayQuestionType(EssayQuestionType essayQuestionType);

    /**
     * 修改问答分类
     *
     * @param essayQuestionType 问答分类
     * @return 结果
     */
    public int updateEssayQuestionType(EssayQuestionType essayQuestionType);

    /**
     * 删除问答分类
     *
     * @param id 问答分类主键
     * @return 结果
     */
    public int deleteEssayQuestionTypeById(Long id);

    /**
     * 批量删除问答分类
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEssayQuestionTypeByIds(Long[] ids);
}
